home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr49 / 273_01.zip / CCOLOR.CC < prev    next >
Text File  |  1993-04-04  |  537b  |  23 lines

  1. ccolor(int row, int col, int attr, int len)
  2. /* This routine will change the color attributes of a column of characters.
  3.    row=row to start changing color
  4.    col=col to start changing color
  5.    attr=attribute to change to
  6.    len=number of rows down the screen to change.
  7. */
  8. {
  9.   extern color, mono, cga, ega, scrseg, bios;
  10.   int    i, orow, ocol;
  11.  
  12.     if(bios) get_cur(&orow,&ocol);
  13.  
  14.   for (i = 0; i < len; i++)
  15.   {
  16.       if(row>24) break;
  17.     swrite_a(row,col,attr);
  18.     row++;
  19.   }
  20.   if(bios) locate(orow,ocol);
  21.   return;
  22. }
  23.